import fetch from 'common/fetch'
import {article} from 'common/uri'

export function getArticles(params) {
  return fetch({
    url: article.articles,
    method: 'get',
    params
  })
}

export function getTotalArticle(params) {
  return fetch({
    url: article.total,
    method: 'get',
    params
  })
}

export function getArticleByArticleId(params) {
  return fetch({
    url: article.article,
    method: 'get',
    params
  })
}
